@use 'sass:math';

// mixin
@import "./mixin/mobile";
@import "./mixin/setOnepx";
@import "./mixin/setArrow";
@import "./mixin/setLoading";
@import "./mixin/text";
@import "./mixin/btnWrapLayout";

// variable
// @import "./variable/global";
// @import "./variable/color";
// @import "./variable/weui-tab";
// @import "./variable/weui-cell";
// @import "./variable/weui-button";
// @import "./variable/weui-msg";
// @import "./variable/weui-grid";
// @import "./variable/weui-progress";
// @import "./variable/weui-dialog";

$browser-context: 16; // Default

@function em($pixels, $context: $browser-context) {
  // @if math.unit($pixels) == px {
  //   $pixels: math.div($pixels, $context);
  // }
  @if math.unit($pixels) != '' {
    $pixels: math.div($pixels, $pixels * 0 + 1);
  }

  @return #{$pixels}em;
}
